package com.app.mapper;

import com.app.model.SecuritiesTradingZone;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import org.apache.ibatis.annotations.Param;

/**
 * <p>
 * 售劵专区表 Mapper 接口
 * </p>
 *
 * @author yoominic
 * @since 2024-09-03
 */
public interface SecuritiesTradingZoneMapper extends BaseMapper<SecuritiesTradingZone> {

    /**
     * 获取没有用户id列表
     *
     * @param p p
     * @return {@link IPage}<{@link SecuritiesTradingZone}>
     */
    IPage<SecuritiesTradingZone> getListWithoutUserId(Page p);
    IPage<SecuritiesTradingZone> getListByUserId(Page p,@Param("userId") Integer userId);

    IPage<SecuritiesTradingZone> adminList(Page p, @Param("status") Integer status,@Param("businessName")  String businessName);

    SecuritiesTradingZone details( @Param("id")  Integer id);
}
